package com.example.qxfw.dysjrh.controller;

import com.example.qxfw.common.SysResult;
import com.example.qxfw.dysjrh.dto.RadarDto;
import com.example.qxfw.dysjrh.service.RadarService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;


/**
 * 雷达信息查询
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/getRadarData")
public class RadarController {

    private final RadarService radarService;

    /**
     * 获取雷达数据
     * @param radarDto
     * @return
     */
    @PostMapping("/getRadar")
    public SysResult getRadarData(@RequestBody RadarDto radarDto) {
        return SysResult.success(radarService.getRadarData(radarDto));
    }



}
